package com.zryc.shop.client;

import com.zryc.shop.ums.entity.Admin;
import com.zryc.shop.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient("shop-user")
public interface IAdminServiceClient {
    //远程调用用户微服务查询（当前登录的）管理员信息
    @GetMapping("/ums/admin/briefInfo")
    ResponseResult<Admin> briefInfo(@RequestHeader("Authorization") String token);
}
